#pragma once
#include "Mutex.hpp"

class LockGuard
{
private:
    Mutex _m;
public:
    LockGuard(Mutex m):_m(m)
    {
        _m.Lock();
    }
    ~LockGuard()
    {
        _m.UnLock();
    }
};
